package com.heima.user.fegin;

import com.heima.apis.user.SelectUser;
import com.heima.model.user.pojos.ApUser;
import com.heima.model.wemedia.pojos.WmUser;
import com.heima.user.mapper.ApUserMapper;
import com.heima.user.service.ApUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class SelectUserImp implements SelectUser {
    @Autowired
    private ApUserService apUserService;
    @Override
    public ApUser selectuser(Integer id) {
        ApUser byId = apUserService.getById(id);
        log.info(byId.toString());

        return byId;
    }

    @Autowired
    private ApUserMapper apUserMapper;

    @Override
    public ApUser selectUser(Integer id) {
        return apUserMapper.selectById(id);
    }
}
